<?php
class Offline {
	function Offline() {				
		$CI =& get_instance();
		$CI->load->model('Model_setting', 'model_setting');
		$CI->load->model('Model_option', 'model_option');
		$settings = $CI->model_setting->first_row();
		$options  = $CI->model_option->find(6);
		if($settings['enable_offline']){
			return $CI->load->view('offline',array('content'=>$options['value']));
			exit;	
		}
	}
}
?>